<?php
class M_info extends CI_Model{

/* 	function get_info(){
		$sql = "
		SELECT * FROM t_info WHERE info_aktif = 'Y'";
		$query = $this->db->query($sql);
		$result = $query->result();
		$data = "";
		foreach($result as $row){
			if ($data != "") 
				$data .= " &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ";
			$data .= "<strong>".dateIndonesia($row->info_tanggal)."</strong> : ";
			$data .= $row->info_isi;
		}
		return $data;
	} */
	function get_info(){
		$sql = "
		SELECT * FROM t_jadwal WHERE jadwal_lastupdate is not null AND jadwal_updatestatus <> '' ORDER BY jadwal_lastupdate DESC";
		$query = $this->db->query($sql);
		$result = $query->result();
		$data = "";
		foreach($result as $row){
			if ($data != "") 
				$data .= " &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ";
			$data .= "<strong>".dateIndonesia($row->jadwal_lastupdate)."</strong> : ";
			$data .= $row->jadwal_alias;
			$data .= " : ";
			$data .= $row->jadwal_updatestatus;
		}
		return $data;
	}
}